package com.youpai.platform.chat.web.api;

import com.youpai.platform.chat.service.entity.dto.ChatMessageDTO;
import com.youpai.platform.chat.service.service.ChatAccountService;
import com.youpai.platform.chat.service.service.ChatMessageService;
import com.youpai.platform.chat.web.entity.req.RecallMessageReq;
import com.youpai.platform.chat.web.entity.req.SyncMsgListRequest;
import com.youpai.platform.chat.web.entity.resp.RecallMessageResp;
import com.youpai.platform.common.entity.resp.BaseResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;


/**
 * @Description: 历史消息相关
 * @Author:welles
 * @Date:2022/7/23
 */
@Slf4j
@RestController
@RequestMapping(value = "/chat/msg")
@Api(value = "ChatAccountController", tags = "聊天账号相关")
public class ChatAccountController {

    @Resource
    private ChatAccountService chatAccountService;

    @ApiOperation(value = "查询系统账号")
    @PostMapping(value = "/system/uid/get")
    public BaseResponse<Long> getSystemUid() {
        return BaseResponse.success(chatAccountService.getSystemUid());
    }


}
